//
//  AddMenuViewController.h
//  Spa
//
//  Created by PangPond on 12/1/2556.
//  Copyright (c) พ.ศ. 2556 innova. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatabaseUtility.h"
#import "AddMenuNameCell.h"
#import "AddMenuPriceCell.h"
@interface AddMenuViewController : UIViewController

@property(nonatomic,strong)DatabaseUtility *databaseUtility;
@property(nonatomic,strong)NSString * keyIf;
@property(nonatomic,strong)NSString * keyMenuName;
-(IBAction)BackButton:(id)sender;
-(IBAction)SaveButton:(id)sender;

//Cell
@property(nonatomic,strong)IBOutlet AddMenuNameCell *addMenuNameCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldName;


//Cell Price
@property(nonatomic,strong)IBOutlet AddMenuPriceCell *addMenuPriceCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldPrice;

//validate
-(BOOL)validate: (NSString *) candidate;
-(BOOL)validateInt: (NSString *) candidate;
@end
